package com.daniel.memo;

import java.util.Calendar;

//CREATE TABLE Memo (memoId INTEGER PRIMARY KEY AUTOINCREMENT, title VARCHAR(200), memo VARCHAR(2000), type INTEGER, date DATE, todoId INTEGER, taskId INTEGER);

public class Memo {

	public static final int MEMO_TYPE = 1;
	public static final int TODO_TYPE = 2;
	public static final int TASK_TYPE = 3;

	public static final String MEMO_TYPE_STR = "Memo";
	public static final String TODO_TYPE_STR = "Todo";
	public static final String TASK_TYPE_STR = "Task";
	
	
	public static final String MEMO_TABLE_NAME = "Memo";
	public static final String MEMO_ID = "memoId";
	public static final String TITLE = "title";
	public static final String MEMO = "memo";
	public static final String TYPE = "type";
	public static final String DATE = "date";
	public static final String TODO_ID = "todoId";
	public static final String TASK_ID = "taskId";
	
	private int memoId; 
	private String title;
	private String memo;
	private int type;
	private Calendar date;
	private int dotoId;
	private int taskId;
	
	private boolean isSeleted;
	
	//default constructor
	public Memo() {
	}
	
	public Memo(String title, int type) {
		this.title = title;
		this.type = type;
		this.isSeleted = false;
	}
	
	public Memo(int memoId, String title, int type) {
		this.memoId = memoId;
		this.title = title;
		this.type = type;
		this.isSeleted = false;
	}
	
	public boolean getIsSeleted(){
		return this.isSeleted;
	}

	public void setIsSeleted(boolean isSeleted){
		this.isSeleted = isSeleted;
	}
	
	
	public int getMemoId() {
		return this.memoId;
	}
	public void setMemoId(int memoId) {
		this.memoId = memoId;
	}
	
	public String getTitle() {
		return this.title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	
	public int getType() {
		return this.type;
	}
	public void setType(int type) {
		this.type = type;
	}
	
	public String getMemo() {
		return this.memo;
	}
	public void setMemo(String memo) {
		this.memo = memo;
	}
	
}
